package com.yonyou.ncmm_pac_pda;

import com.yonyou.uap.um.application.ApplicationContext;
import com.yonyou.uap.um.base.*;
import com.yonyou.uap.um.common.*;
import com.yonyou.uap.um.third.*;
import com.yonyou.uap.um.control.*;
import com.yonyou.uap.um.core.*;
import com.yonyou.uap.um.binder.*;
import com.yonyou.uap.um.runtime.*;
import com.yonyou.uap.um.lexer.*;
import com.yonyou.uap.um.widget.*;
import com.yonyou.uap.um.widget.UmpSlidingLayout.SlidingViewType;
import com.yonyou.uap.um.log.ULog;
import java.util.*;
import android.os.*;
import android.view.*;
import android.widget.*;
import android.webkit.*;
import android.content.*;
import android.graphics.*;
import android.widget.ImageView.ScaleType;

public abstract class ProcessRptQueryActivity extends UMWindowActivity {

	protected UMWindow ProcessRptQuery = null;
protected XVerticalLayout viewPage0 = null;
protected XHorizontalLayout navigatorbar0 = null;
protected UMButton button0 = null;
protected UMLabel label0 = null;
protected UMButton button1 = null;
protected XVerticalLayout wpanel0 = null;
protected XHorizontalLayout wpanel1 = null;
protected UMLabel wlabel0 = null;
protected UMLabel wlabel1 = null;
protected XHorizontalLayout wpanel2 = null;
protected UMLabel wlabel2 = null;
protected UMLabel wlabel3 = null;
protected XHorizontalLayout wpanel3 = null;
protected UMLabel wlabel4 = null;
protected UMImageButton wimagebutton0 = null;
protected XHorizontalLayout wpanel4 = null;
protected UMLabel wlabel5 = null;
protected UMImageButton wimagebutton1 = null;
protected XHorizontalLayout wpanel5 = null;
protected UMLabel wlabel6 = null;
protected UMDateEdit dateinput0 = null;
protected XHorizontalLayout wpanel6 = null;
protected UMLabel label1 = null;
protected UMDateEdit dateinput1 = null;
protected UMButton wbutton0 = null;

	
	protected final static int ID_PROCESSRPTQUERY = 2139136026;
protected final static int ID_VIEWPAGE0 = 1133343314;
protected final static int ID_NAVIGATORBAR0 = 581462710;
protected final static int ID_BUTTON0 = 1726107274;
protected final static int ID_LABEL0 = 563093614;
protected final static int ID_BUTTON1 = 307962838;
protected final static int ID_WPANEL0 = 1706353604;
protected final static int ID_WPANEL1 = 2090324633;
protected final static int ID_WLABEL0 = 902475719;
protected final static int ID_WLABEL1 = 2048740731;
protected final static int ID_WPANEL2 = 2013932191;
protected final static int ID_WLABEL2 = 2135253489;
protected final static int ID_WLABEL3 = 874640085;
protected final static int ID_WPANEL3 = 2076465404;
protected final static int ID_WLABEL4 = 993187062;
protected final static int ID_WIMAGEBUTTON0 = 2028425206;
protected final static int ID_WPANEL4 = 2030840799;
protected final static int ID_WLABEL5 = 621482401;
protected final static int ID_WIMAGEBUTTON1 = 909003158;
protected final static int ID_WPANEL5 = 828870317;
protected final static int ID_WLABEL6 = 29101476;
protected final static int ID_DATEINPUT0 = 1256430231;
protected final static int ID_WPANEL6 = 173240859;
protected final static int ID_LABEL1 = 2057596424;
protected final static int ID_DATEINPUT1 = 208915962;
protected final static int ID_WBUTTON0 = 1492132000;

	
	
	@Override
	public String getControllerName() {
		return "ProcessRptQueryController";
	}
	
	@Override
	public String getContextName() {
		return "";
	}

	@Override
	public String getNameSpace() {
		return "com.yonyou.ncmm_pac_pda";
	}

	protected void onCreate(Bundle savedInstanceState) {
		ULog.logLC("onCreate", this);
		super.onCreate(savedInstanceState);
        onInit(savedInstanceState);
        
	}
	
	@Override
	protected void onStart() {
		ULog.logLC("onStart", this);
		
		super.onStart();
	}

	@Override
	protected void onRestart() {
		ULog.logLC("onRestart", this);
		
		super.onRestart();
	}

	@Override
	protected void onResume() {
		ULog.logLC("onResume", this);
		
		super.onResume();
	}

	@Override
	protected void onPause() {
		ULog.logLC("onPause", this);
		
		super.onPause();
	}

	@Override
	protected void onStop() {
		ULog.logLC("onStop", this);
		
		super.onStop();
	}

	@Override
	protected void onDestroy() {
		ULog.logLC("onDestroy", this);
		
		super.onDestroy();
	}
	
	public  void onInit(Bundle savedInstanceState) {
		ULog.logLC("onInit", this);
		UMActivity context = this;
		registerControl();
		this.getContainer();
		
		/*
		 new Thread() {
			 public void run() {
				 UMPDebugClient.startServer();
			 }
		 }.start();
		*/
		String sys_debug = ApplicationContext.getCurrent(this).getValue("sys_debug");
		if (sys_debug != null && sys_debug.equalsIgnoreCase("true")) {
			UMPDebugClient.waitForDebug();
		}

		IBinderGroup binderGroup = this;
		currentPage = getCurrentWindow(context, binderGroup);
super.setContentView(currentPage);

		
	}
	
	private void registerControl() {
		  idmap.put("ProcessRptQuery",ID_PROCESSRPTQUERY);
  idmap.put("viewPage0",ID_VIEWPAGE0);
  idmap.put("navigatorbar0",ID_NAVIGATORBAR0);
  idmap.put("button0",ID_BUTTON0);
  idmap.put("label0",ID_LABEL0);
  idmap.put("button1",ID_BUTTON1);
  idmap.put("wpanel0",ID_WPANEL0);
  idmap.put("wpanel1",ID_WPANEL1);
  idmap.put("wlabel0",ID_WLABEL0);
  idmap.put("wlabel1",ID_WLABEL1);
  idmap.put("wpanel2",ID_WPANEL2);
  idmap.put("wlabel2",ID_WLABEL2);
  idmap.put("wlabel3",ID_WLABEL3);
  idmap.put("wpanel3",ID_WPANEL3);
  idmap.put("wlabel4",ID_WLABEL4);
  idmap.put("wimagebutton0",ID_WIMAGEBUTTON0);
  idmap.put("wpanel4",ID_WPANEL4);
  idmap.put("wlabel5",ID_WLABEL5);
  idmap.put("wimagebutton1",ID_WIMAGEBUTTON1);
  idmap.put("wpanel5",ID_WPANEL5);
  idmap.put("wlabel6",ID_WLABEL6);
  idmap.put("dateinput0",ID_DATEINPUT0);
  idmap.put("wpanel6",ID_WPANEL6);
  idmap.put("label1",ID_LABEL1);
  idmap.put("dateinput1",ID_DATEINPUT1);
  idmap.put("wbutton0",ID_WBUTTON0);

	}
	
	public void onLoad() {
		ULog.logLC("onLoad", this);
		if(currentPage!=null) {
			currentPage.onLoad();
		}
	
		
	}
	
	public void onDatabinding() {
		ULog.logLC("onDatabinding", this);
		super.onDatabinding();
		
	}
	
	@Override
	public void onReturn(String methodName, Object returnValue) {
		
	}

	@Override
	public void onAfterInit() {
		ULog.logLC("onAfterInit", this);
		
		onLoad();
	}
	
		@Override
	public Map<String,String> getPlugout(String id) {
		XJSON from = this.getUMContext();
		Map<String,String> r = super.getPlugout(id);
		
		return r;	
	}
	
	
	
	public View getNavigatorbar0View(final UMActivity context,IBinderGroup binderGroup) {
navigatorbar0 = (XHorizontalLayout)ThirdControl.createControl(new XHorizontalLayout(context),ID_NAVIGATORBAR0
,"color","#323232"
,"padding-left","8"
,"font-size","17"
,"valign","center"
,"title","派工单查询"
,"width","fill"
,"font-family","default"
,"background-image","navbar_login.png"
,"layout-type","vbox"
,"halign","LEFT"
,"padding-right","8"
,"height","44.0"
);
button0 = (UMButton)ThirdControl.createControl(new UMButton(context),ID_BUTTON0
,"font-pressed-color","#e50011"
,"color","#ffffff"
,"width","44"
,"font-size","20"
,"font-family","default"
,"valign","center"
,"background-image","icon_back.png"
,"layout-type","hbox"
,"halign","center"
,"height","44"
);
navigatorbar0.addView(button0);
label0 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_LABEL0
,"width","0"
,"weight","1"
,"font-family","default"
,"valign","center"
,"layout-type","hbox"
,"halign","center"
,"height","fill"
);
navigatorbar0.addView(label0);
button1 = (UMButton)ThirdControl.createControl(new UMButton(context),ID_BUTTON1
,"font-pressed-color","#e50011"
,"color","#ffffff"
,"width","44.0"
,"font-size","20"
,"font-family","default"
,"valign","center"
,"background-image","icon_menu.png"
,"layout-type","hbox"
,"halign","center"
,"height","44"
);
navigatorbar0.addView(button1);

return navigatorbar0;
}
public View getWpanel1View(final UMActivity context,IBinderGroup binderGroup) {
wpanel1 = (XHorizontalLayout)ThirdControl.createControl(new XHorizontalLayout(context),ID_WPANEL1
,"background","#ffffff"
,"padding-left","20"
,"width","fill"
,"valign","center"
,"layout-type","vbox"
,"halign","LEFT"
,"padding-right","15"
,"height","44"
);
wlabel0 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_WLABEL0
,"color","#333333"
,"width","0"
,"weight","1"
,"font-size","14"
,"font-family","default"
,"valign","center"
,"layout-type","hbox"
,"halign","left"
,"content","产品"
,"height","fill"
);
wpanel1.addView(wlabel0);
wlabel1 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_WLABEL1
,"color","#333333"
,"width","0"
,"weight","1"
,"font-size","14"
,"font-family","default"
,"valign","center"
,"layout-type","hbox"
,"halign","right"
,"content","Lexi"
,"height","fill"
);
wpanel1.addView(wlabel1);

return wpanel1;
}
public View getWpanel2View(final UMActivity context,IBinderGroup binderGroup) {
wpanel2 = (XHorizontalLayout)ThirdControl.createControl(new XHorizontalLayout(context),ID_WPANEL2
,"background","#ffffff"
,"padding-left","20"
,"width","fill"
,"margin-top","1"
,"valign","center"
,"layout-type","vbox"
,"halign","LEFT"
,"padding-right","15"
,"height","44"
);
wlabel2 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_WLABEL2
,"color","#333333"
,"width","0"
,"weight","1"
,"font-size","14"
,"font-family","default"
,"valign","center"
,"layout-type","hbox"
,"halign","left"
,"content","单据号"
,"height","fill"
);
wpanel2.addView(wlabel2);
wlabel3 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_WLABEL3
,"color","#333333"
,"width","0"
,"weight","1"
,"font-size","14"
,"font-family","default"
,"valign","center"
,"layout-type","hbox"
,"halign","right"
,"content","100105662"
,"height","fill"
);
wpanel2.addView(wlabel3);

return wpanel2;
}
public View getWpanel3View(final UMActivity context,IBinderGroup binderGroup) {
wpanel3 = (XHorizontalLayout)ThirdControl.createControl(new XHorizontalLayout(context),ID_WPANEL3
,"background","#ffffff"
,"padding-left","20"
,"width","fill"
,"margin-top","1"
,"valign","center"
,"layout-type","vbox"
,"halign","LEFT"
,"height","44"
);
wlabel4 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_WLABEL4
,"color","#333333"
,"width","0"
,"weight","1"
,"font-size","14"
,"font-family","default"
,"valign","center"
,"layout-type","hbox"
,"halign","left"
,"content","部门"
,"height","fill"
);
wpanel3.addView(wlabel4);
wimagebutton0 = (UMImageButton)ThirdControl.createControl(new UMImageButton(context),ID_WIMAGEBUTTON0
,"font-pressed-color","#e50011"
,"color","#919191"
,"icon-height","25"
,"font-size","14"
,"valign","center"
,"icon-text-spacing","3"
,"widthwrap","84.0"
,"icon-background-image","icon_enter"
,"istogglebutton","false"
,"width","wrap"
,"checked","false"
,"font-family","default"
,"layout-type","hbox"
,"halign","center"
,"icon-width","25"
,"value","请选择"
,"height","44"
,"text-align","left"
);
wpanel3.addView(wimagebutton0);

return wpanel3;
}
public View getWpanel4View(final UMActivity context,IBinderGroup binderGroup) {
wpanel4 = (XHorizontalLayout)ThirdControl.createControl(new XHorizontalLayout(context),ID_WPANEL4
,"background","#ffffff"
,"padding-left","20"
,"width","fill"
,"margin-top","1"
,"valign","center"
,"layout-type","vbox"
,"halign","LEFT"
,"height","44"
);
wlabel5 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_WLABEL5
,"color","#333333"
,"width","0"
,"weight","1"
,"font-size","14"
,"font-family","default"
,"valign","center"
,"layout-type","hbox"
,"halign","left"
,"content","工作中心"
,"height","fill"
);
wpanel4.addView(wlabel5);
wimagebutton1 = (UMImageButton)ThirdControl.createControl(new UMImageButton(context),ID_WIMAGEBUTTON1
,"font-pressed-color","#e50011"
,"color","#919191"
,"icon-height","25"
,"font-size","14"
,"valign","center"
,"icon-text-spacing","3"
,"widthwrap","84.0"
,"icon-background-image","icon_enter"
,"istogglebutton","false"
,"width","wrap"
,"checked","false"
,"font-family","default"
,"layout-type","hbox"
,"halign","center"
,"icon-width","25"
,"value","请选择"
,"height","44"
,"text-align","left"
);
wpanel4.addView(wimagebutton1);

return wpanel4;
}
public View getWpanel5View(final UMActivity context,IBinderGroup binderGroup) {
wpanel5 = (XHorizontalLayout)ThirdControl.createControl(new XHorizontalLayout(context),ID_WPANEL5
,"background","#ffffff"
,"padding-left","20"
,"width","fill"
,"margin-top","1"
,"valign","center"
,"layout-type","vbox"
,"halign","LEFT"
,"padding-right","15"
,"height","44"
);
wlabel6 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_WLABEL6
,"color","#333333"
,"width","140.0"
,"font-size","14"
,"font-family","default"
,"valign","center"
,"layout-type","hbox"
,"halign","left"
,"content","计划开始日期"
,"height","fill"
);
wpanel5.addView(wlabel6);
dateinput0 = (UMDateEdit)ThirdControl.createControl(new UMDateEdit(context),ID_DATEINPUT0
,"color","#167ef8"
,"background","#ffffff"
,"padding-left","4"
,"format","yyyy年M月d日"
,"width","fill"
,"font-size","17"
,"font-family","default"
,"placeholder","2016年9月21日"
,"layout-type","hbox"
,"halign","RIGHT"
,"height","40.0"
);
wpanel5.addView(dateinput0);

return wpanel5;
}
public View getWpanel6View(final UMActivity context,IBinderGroup binderGroup) {
wpanel6 = (XHorizontalLayout)ThirdControl.createControl(new XHorizontalLayout(context),ID_WPANEL6
,"background","#ffffff"
,"padding-left","20"
,"width","fill"
,"margin-top","1"
,"valign","center"
,"layout-type","vbox"
,"halign","LEFT"
,"padding-right","15"
,"height","44"
);
label1 = (UMLabel)ThirdControl.createControl(new UMLabel(context),ID_LABEL1
,"color","#333333"
,"width","140.0"
,"font-size","14"
,"font-family","default"
,"valign","center"
,"layout-type","hbox"
,"halign","left"
,"content","计划结束日期"
,"height","fill"
);
wpanel6.addView(label1);
dateinput1 = (UMDateEdit)ThirdControl.createControl(new UMDateEdit(context),ID_DATEINPUT1
,"color","#167ef8"
,"background","#ffffff"
,"padding-left","4"
,"format","yyyy年M月d日"
,"width","fill"
,"font-size","17"
,"font-family","default"
,"placeholder","2016年9月21日"
,"layout-type","hbox"
,"halign","RIGHT"
,"height","40.0"
);
wpanel6.addView(dateinput1);

return wpanel6;
}
public View getWpanel0View(final UMActivity context,IBinderGroup binderGroup) {
wpanel0 = (XVerticalLayout)ThirdControl.createControl(new XVerticalLayout(context),ID_WPANEL0
,"background","#f1f1f1"
,"width","fill"
,"valign","TOP"
,"layout-type","vbox"
,"halign","center"
,"height","fill"
);
View wpanel1 = (View) getWpanel1View((UMActivity)context,binderGroup);
wpanel0.addView(wpanel1);
View wpanel2 = (View) getWpanel2View((UMActivity)context,binderGroup);
wpanel0.addView(wpanel2);
View wpanel3 = (View) getWpanel3View((UMActivity)context,binderGroup);
wpanel0.addView(wpanel3);
View wpanel4 = (View) getWpanel4View((UMActivity)context,binderGroup);
wpanel0.addView(wpanel4);
View wpanel5 = (View) getWpanel5View((UMActivity)context,binderGroup);
wpanel0.addView(wpanel5);
View wpanel6 = (View) getWpanel6View((UMActivity)context,binderGroup);
wpanel0.addView(wpanel6);
wbutton0 = (UMButton)ThirdControl.createControl(new UMButton(context),ID_WBUTTON0
,"font-pressed-color","#e50011"
,"color","#ffffff"
,"font-size","20"
,"valign","center"
,"margin-right","10"
,"margin-left","10"
,"background","#f7931e"
,"width","fill"
,"font-family","default"
,"margin-top","20"
,"layout-type","vbox"
,"halign","center"
,"value","查询"
,"height","44"
);
wpanel0.addView(wbutton0);

return wpanel0;
}
public View getViewPage0View(final UMActivity context,IBinderGroup binderGroup) {
viewPage0 = (XVerticalLayout)ThirdControl.createControl(new XVerticalLayout(context),ID_VIEWPAGE0
,"background","#F5F5F5"
,"width","fill"
,"valign","TOP"
,"layout-type","vbox"
,"halign","center"
,"height","fill"
);
View navigatorbar0 = (View) getNavigatorbar0View((UMActivity)context,binderGroup);
viewPage0.addView(navigatorbar0);
View wpanel0 = (View) getWpanel0View((UMActivity)context,binderGroup);
viewPage0.addView(wpanel0);

return viewPage0;
}
public UMWindow getCurrentWindow(final UMActivity context,IBinderGroup binderGroup) {
ProcessRptQuery = (UMWindow)ThirdControl.createControl(new UMWindow(context),ID_PROCESSRPTQUERY
,"layout","vbox"
,"controller","ProcessRptQueryController"
,"namespace","com.yonyou.ncmm_pac_pda"
,"width","fill"
,"valign","TOP"
,"layout-type","linear"
,"halign","center"
,"height","fill"
);
View viewPage0 = (View) getViewPage0View((UMActivity)context,binderGroup);
ProcessRptQuery.addView(viewPage0);

return (UMWindow)ProcessRptQuery;
}

	
	

}
